import java.util.Scanner;

public class Main {
    public static int CoMultiple(int x,int y){
        for (int i =2; i < x*y ; i++) {
            if(i%x == 0 && i%y == 0){
                return i;
            }
        }
        return x*y;
    }

    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        int a = num.nextInt();
        int b = num.nextInt();
        System.out.println(CoMultiple(a, b));
    }
}
